include $(top_srcdir)/Makefile.shared

noinst_LTLIBRARIES=libcredenza-private.la

INCLUDES = 						\
	-I$(top_srcdir) 				\
	-I$(top_builddir) 				\
	-I$(top_srcdir)/cut-n-paste-code		\
	$(CORE_CFLAGS)					\
	$(WARNING_CFLAGS)				\
	$(DISABLE_DEPRECATED_CFLAGS)			\
	$(TRACKER_CFLAGS)				\
	$(BEAGLE_CFLAGS)				\
	-DDATADIR=\""$(datadir)"\" 			\
	-DSYSCONFDIR=\""$(sysconfdir)"\" 			\
	-DCREDENZA_DATADIR=\""$(datadir)/credenza"\" 	\
	-DNAUTILUS_EXTENSIONDIR=\""$(libdir)/nautilus/extensions-2.0"\" \
	$(NULL)

dependency_static_libs = \
	$(top_builddir)/cut-n-paste-code/libegg/libegg.la \
        $(NULL)

libcredenza_private_la_LDFLAGS =	\
	-no-undefined			\
	$(NULL)

libcredenza_private_la_LIBADD =		\
	$(dependency_static_libs)	\
	$(SELINUX_LIBS)			\
	$(BEAGLE_LIBS)			\
	$(TRACKER_LIBS)			\
	$(top_builddir)/eel/libeel-2.la \
	$(top_builddir)/libnautilus-extension/libnautilus-extension.la \
	$(CORE_LIBS)			\
	$(NULL)

marshal_sources = \
	credenza-marshal.h \
	credenza-marshal-guts.c \
	$(NULL)

libcredenza_private_la_SOURCES = \
	credenza-autorun.c \
	credenza-autorun.h \
	credenza-bookmark.c \
	credenza-bookmark.h \
	credenza-cell-renderer-pixbuf-emblem.c \
	credenza-cell-renderer-pixbuf-emblem.h \
	credenza-cell-renderer-text-ellipsized.c \
	credenza-cell-renderer-text-ellipsized.h \
	credenza-clipboard-monitor.c \
	credenza-clipboard-monitor.h \
	credenza-clipboard.c \
	credenza-clipboard.h \
	credenza-column-chooser.c \
	credenza-column-chooser.h \
	credenza-column-utilities.c \
	credenza-column-utilities.h \
	credenza-customization-data.c \
	credenza-customization-data.h \
	credenza-debug-log.c \
	credenza-debug-log.h \
	credenza-default-file-icon.c \
	credenza-default-file-icon.h \
	credenza-desktop-directory-file.c \
	credenza-desktop-directory-file.h \
	credenza-desktop-directory.c \
	credenza-desktop-directory.h \
	credenza-desktop-icon-file.c \
	credenza-desktop-icon-file.h \
	credenza-desktop-link-monitor.c \
	credenza-desktop-link-monitor.h \
	credenza-desktop-link.c \
	credenza-desktop-link.h \
	credenza-directory-async.c \
	credenza-directory-background.c \
	credenza-directory-background.h \
	credenza-directory-notify.h \
	credenza-directory-private.h \
	credenza-directory.c \
	credenza-directory.h \
	credenza-dnd.c \
	credenza-dnd.h \
	credenza-emblem-utils.c \
	credenza-emblem-utils.h \
	credenza-entry.c \
	credenza-entry.h \
	credenza-file-attributes.h \
	credenza-file-changes-queue.c \
	credenza-file-changes-queue.h \
	credenza-file-conflict-dialog.c \
	credenza-file-conflict-dialog.h \
	credenza-file-dnd.c \
	credenza-file-dnd.h \
	credenza-file-operations.c \
	credenza-file-operations.h \
	credenza-file-private.h \
	credenza-file-queue.c \
	credenza-file-queue.h \
	credenza-file-utilities.c \
	credenza-file-utilities.h \
	credenza-file.c \
	credenza-file.h \
	credenza-global-preferences.c \
	credenza-global-preferences.h \
	credenza-horizontal-splitter.c \
	credenza-horizontal-splitter.h \
	credenza-icon-canvas-item.c \
	credenza-icon-canvas-item.h \
	credenza-icon-container.c \
	credenza-icon-container.h \
	credenza-icon-dnd.c \
	credenza-icon-dnd.h \
	credenza-icon-private.h \
	credenza-icon-info.c \
	credenza-icon-info.h \
	credenza-icon-names.h \
	credenza-idle-queue.c \
	credenza-idle-queue.h \
	credenza-iso9660.h \
	credenza-keep-last-vertical-box.c \
	credenza-keep-last-vertical-box.h \
	credenza-lib-self-check-functions.c \
	credenza-lib-self-check-functions.h \
	credenza-link.c \
	credenza-link.h \
	credenza-marshal.c \
	credenza-marshal.h \
	credenza-merged-directory.c \
	credenza-merged-directory.h \
	credenza-metadata.h \
	credenza-metadata.c \
	credenza-mime-actions.c \
	credenza-mime-actions.h \
	credenza-mime-application-chooser.c \
	credenza-mime-application-chooser.h \
	credenza-module.c \
	credenza-module.h \
	credenza-monitor.c \
	credenza-monitor.h \
	credenza-open-with-dialog.c \
	credenza-open-with-dialog.h \
	credenza-progress-info.c \
	credenza-progress-info.h \
	credenza-program-choosing.c \
	credenza-program-choosing.h \
	credenza-recent.c \
	credenza-recent.h \
	credenza-saved-search-file.c \
	credenza-saved-search-file.h \
	credenza-search-directory.c \
	credenza-search-directory.h \
	credenza-search-directory-file.c \
	credenza-search-directory-file.h \
	credenza-search-engine.c \
	credenza-search-engine.h \
	credenza-search-engine-simple.c \
	credenza-search-engine-simple.h \
	credenza-search-engine-beagle.c \
	credenza-search-engine-beagle.h \
	credenza-search-engine-tracker.c \
	credenza-search-engine-tracker.h \
	credenza-sidebar-provider.c \
	credenza-sidebar-provider.h \
	credenza-sidebar.c \
	credenza-sidebar.h \
	credenza-signaller.h \
	credenza-signaller.c \
	credenza-query.c \
	credenza-query.h \
	credenza-thumbnails.c \
	credenza-thumbnails.h \
	credenza-trash-monitor.c \
	credenza-trash-monitor.h \
	credenza-tree-view-drag-dest.c \
	credenza-tree-view-drag-dest.h \
	credenza-ui-utilities.c \
	credenza-ui-utilities.h \
	credenza-undo-manager.c \
	credenza-undo-manager.h \
	credenza-undo-private.h \
	credenza-undo-signal-handlers.c \
	credenza-undo-signal-handlers.h \
	credenza-undo-transaction.c \
	credenza-undo-transaction.h \
	credenza-undo.c \
	credenza-undo.h \
	credenza-users-groups-cache.c \
	credenza-users-groups-cache.h \
	credenza-vfs-directory.c \
	credenza-vfs-directory.h \
	credenza-vfs-file.c \
	credenza-vfs-file.h \
	credenza-view-factory.c \
	credenza-view-factory.h \
	credenza-view.c \
	credenza-view.h \
	credenza-window-info.c \
	credenza-window-info.h \
	credenza-window-slot-info.c \
	credenza-window-slot-info.h \
	$(NULL)

$(lib_LTLIBRARIES): $(dependency_static_libs)

credenza-marshal.h: credenza-marshal.list $(GLIB_GENMARSHAL)
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --header --prefix=credenza_marshal > $@
credenza-marshal-guts.c: credenza-marshal.list $(GLIB_GENMARSHAL)
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --body --prefix=credenza_marshal > $@

$(libcredenza_private_la_OBJECTS): $(marshal_sources)


schema_in_files =  apps_credenza_preferences.schemas.in
schemadir   = $(GCONF_SCHEMA_FILE_DIR)
schema_DATA = $(schema_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

# don't do this if we are building in eg. rpm
if GCONF_SCHEMAS_INSTALL
install-data-local:
	if test -z "$(DESTDIR)" ; then \
		for p in $(schema_DATA) ; do \
			GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p; \
		done \
	fi
endif

EXTRA_DIST = 				\
	credenza-marshal.list		\
	$(schema_in_files)              \
	$(BEAGLE_SOURCES)		\
	$(TRACKER_SOURCES)		\
	$(NULL)

CLEANFILES = \
	$(marshal_sources)				\
	$(schema_DATA)			                \
	$(NULL)

dist-hook:
	cd $(distdir); rm -f $(CLEANFILES)

